package com.etoak.stock.vo.req;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @Author by 孙有泽
 * @Date 2024/11/12 13:24
 * @Description 更新权限Vo
 */
@ApiModel(description = "更新权限Vo")
@Data
public class PermissionUpdateVo {

    //主键
    @ApiModelProperty(value = "主键", position = 1)
    private Long id;

    @ApiModelProperty(value = "菜单等级 0 顶级目录 1.目录 2 菜单 3 按钮", position = 2)
    private  String type;		//菜单等级 0 顶级目录 1.目录 2 菜单 3 按钮

    @ApiModelProperty(value = "更新角色权限,", position = 3)
    private  String title;      //更新角色权限,
    /**
     * 对应资源路径
     *  1.如果类型是目录，则url为空
     *  2.如果类型是菜单，则url对应路由地址
     *  3.如果类型是按钮，则url对应是访问接口的地址
     */

    @ApiModelProperty(value = "对应资源路径", position = 4)
    private String url;		//对应资源路径

    @ApiModelProperty(value = "路由名称", position = 5)
    private  String name;		//路由名称

    @ApiModelProperty(value = "图标", position = 6)
    private  String icon;		//图标

    @ApiModelProperty(value = "权限标识", position = 7)
    private  String perms;		//权限标识

    @ApiModelProperty(value = "请求方式", position = 8)
    private  String method;		//请求方式

    @ApiModelProperty(value = "按钮权限标识", position = 9)
    private  String code;		//按钮权限标识

    @ApiModelProperty(value = "排序", position = 10)
    private  Integer orderNum;	//排序

    @ApiModelProperty(value = "上级id", position = 11)
    private  Long pid;		//上级id
}
